package com.itheim.neibulei3;

public class Test {

    public static void main(String[] args) {
       /* System.out.println(Outer.i);
        Outer.sing();
        //外部类名.内部类名 对象名 = new 外部类名.内部类名()
        Outer.Inner inner = new Outer.Inner();
        System.out.println(inner.j);
        inner.dance();*/
        System.out.println(Outer.Inner.j);
        Outer.Inner.dance();

    }
}

class Outer {
    static int i = 10;

    public static void sing() {
        System.out.println("只因你太美");
    }

    static class Inner {
        static int j = 10;

        public static void dance() {
            System.out.println(i);
            System.out.println("蹦跶");
        }
    }
}
